package com.tss.model;

/**
 * 车票类型实体类
 */
public class TicketType {
    private int id;           // 车票ID
    private String type;      // 类型名称
    private String category;  // 分类（如坐席类型）
    private double price;     // 价格
    private int validityDays; // 有效天数
    
    public TicketType() {
    }
    
    public TicketType(int id, String type, String category, double price, int validityDays) {
        this.id = id;
        this.type = type;
        this.category = category;
        this.price = price;
        this.validityDays = validityDays;
    }
    
    public int getId() {
        return id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    
    public String getType() {
        return type;
    }
    
    public void setType(String type) {
        this.type = type;
    }
    
    public String getCategory() {
        return category;
    }
    
    public void setCategory(String category) {
        this.category = category;
    }
    
    public double getPrice() {
        return price;
    }
    
    public void setPrice(double price) {
        this.price = price;
    }
    
    public int getValidityDays() {
        return validityDays;
    }
    
    public void setValidityDays(int validityDays) {
        this.validityDays = validityDays;
    }
    
    @Override
    public String toString() {
        return type + " - " + category + " (¥" + price + ")";
    }
} 